package com.dorukdestan.p2pshare.model;
import java.net.InetAddress;
import java.util.ArrayList;

	public class SearchResult{
		private ArrayList<InetAddress> peerAddresses;
		private String name;
		private long lengthOfFile;
		
		public SearchResult(InetAddress peerAddress,long lengthOfFile, String fileName) {
			peerAddresses = new ArrayList<InetAddress>();
			this.peerAddresses.add(peerAddress);
			this.lengthOfFile = lengthOfFile;
			this.name = fileName;
		}
		
		public void addPeerAddress(InetAddress address){
			peerAddresses.add(address);
		}

		public long getLengthOfFile() {
			return lengthOfFile;
		}

		public void setLengthOfFile(long lengthOfFile) {
			this.lengthOfFile = lengthOfFile;
		}

		public ArrayList<InetAddress> getPeerAddresses() {
			return peerAddresses;
		}

		public String getName() {
			return name;
		}
		
	}